package B;

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add("1");
        System.out.println(stringsTest(strings));
    }

    public static boolean stringsTest(ArrayList<String> al) {
        //判断al集合是否为空,为空返回true，不为空返回false
        if (al.isEmpty()) {
            return true;
        } else {
            return false;
        }
    }
}